package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.bean.vo.ShopCollectionVO;import com.lanchetech.entity.ShopCollection;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface ShopCollectionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopCollection record);

    int insertSelective(ShopCollection record);

    ShopCollection selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShopCollection record);

    int updateByPrimaryKey(ShopCollection record);

    List<ShopCollectionVO> findAllPage(PageReq req);

    ShopCollection findOneByShopIdAndUserId(@Param("shopId") Long shopId, @Param("userId") Long userId);

    Long countByShopId(@Param("shopId") Long shopId);
}